<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>欢迎登录汽车租赁管理系统</title>

    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/font-awesome/css/font-awesome.css}" rel="stylesheet">

    <link th:href="@{css/animate.css}" rel="stylesheet">
    <link th:href="@{css/style.css}" rel="stylesheet">

</head>

<body class="gray-bg">

<div class="loginColumns animated fadeInDown">
    <div class="row">
        <div class="col-md-6">
            <div class="ibox-content">
                <div class="ibox-title">
                    <h2>用户注册</h2>

                </div>
                <div class="ibox-content">
                    <form th:method="post" th:action="@{/add}">
                        <div class="form-group row"><label class="col-sm-2 col-form-label">电话</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="user_phone" required="" maxlength="20" placeholder="请输入电话">
                            </div>
                        </div>
                        <div class="form-group row"><label class="col-sm-2 col-form-label">姓名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="user_name"  maxlength="20" placeholder="请输入姓名">
                            </div>
                        </div>
                        <div class="form-group row"><label class="col-sm-2 col-form-label">密码</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="user_pwd" required="" maxlength="20" placeholder="请输入密码">
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="text-center">
                                <button class="btn btn-white btn-lg" type="button" onclick="doCancel();">取消</button>
                                <button class="btn btn-primary btn-lg" type="submit">保存</button>
                            </div>
                        </div>
                    </form>

                </div>

            </div>
        </div>
    </div>

</div>
<script>
    // 取消按钮
    function doCancel()
    {
        window.location.href = document.referrer;
    }
</script>
</body>

</html>
